package me.cloud.seata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;
import me.boot.gen.table.annotation.IsAutoIncrement;
import org.apache.ibatis.type.JdbcType;

import java.time.LocalDateTime;

/**
 * @Description:
 * @author: Sylar
 * @date: 2021年11月04日 10:28 上午
 */
@Getter
@Setter
public class UndoLog {
    @IsAutoIncrement
    @TableId(type = IdType.AUTO)
    Long id;
    Long branchId;
    String xid;
    String context;
    Byte[] rollbackInfo;
    @TableField(jdbcType = JdbcType.TIMESTAMP)
    LocalDateTime logStatus;
    @TableField(jdbcType = JdbcType.TIMESTAMP)
    LocalDateTime logModified;
}
